<!DOCTYPE html>
<html>
  <head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no"/>
    <title></title>
    <link rel="stylesheet" type="text/css" href="index.css"/>
    <script type="text/javascript" src='./libs/requirejs.js' async='true' defer data-main='./main.js'></script>
  </head>
  <body>
    <div class="content">

    </div>
    <div class="nav-wrap">
      <ul>
        <li>
          <div class="nav-item">
            <img src="./home/images/nav/home.png" alt="">
            <a href="#home">首页</a>
          </div>
        </li>
        <li>
          <div class="nav-item">
            <img src="./home/images/nav/quick.png" alt="">
            <a href="#quick">闪送超市</a>
          </div>
        </li>
        <li>
          <div class="nav-item">
            <img src="./home/images/nav/car.png" alt="">
            <a href="#shoppingCar">购物车</a>
          </div>
        </li>
        <li>
          <div class="nav-item">
            <img src="./home/images/nav/mine.png" alt="">
            <a href="#mine">我的</a>
          </div>
        </li>
      </ul>
    </div>
  </body>
  <script type="text/javascript">
  (function (doc, win) {
          var docEl = doc.documentElement,
              resizeEvt = 'orientationchange' in window ? 'orientationchange' : 'resize',
              recalc = function () {
                  var clientWidth = docEl.clientWidth;
                  if (!clientWidth) return;
                  if(clientWidth>=640){
                      docEl.style.fontSize = '100px';
                  }else{
                      docEl.style.fontSize = 100 * (clientWidth / 640) + 'px';
                  }
              };

          if (!doc.addEventListener) return;
          win.addEventListener(resizeEvt, recalc, false);
          doc.addEventListener('DOMContentLoaded', recalc, false);
      })(document, window);
  </script>

</html>
